home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 4
/
Amiga Tools 4.iso
/
tools
/
disk-tools
/
cd-rom
/
audio
/
mcdpindex
/
mcdpindex.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-26
|
807b
|
39 lines
/*
* MCDPIndex - A small, stupid but somewhat useful (?) tool.
*
* © 1995 by Michael Bauer (michael.bauer@zdv.uni-tuebingen.de
*
* Sorry, this sourcecode is really small and stupid. But I wanted to
* take a look at all the index files included in some CDPlayer GUIs
* like e.g MCDP, BGUIPlayer, CeeD, ...
*
* Usage: spat MCDPIndex songdir:id#? [ > <CDIndex> ]
*
* Disclaimer: This stuff is Freeware
*/
#include <stdio.h>
void main(int argc, char **argv) {
FILE *in;
char buf[256];
if (argc != 2) {
printf("Usage: cdindex <filename>\n");
exit(0);
}
in = fopen(argv[1],"r");
if (!in) {
printf("Error: Can't open file.\n");
exit(0);
}
printf("%s", fgets(buf,255,in));
printf("%s\n", fgets(buf,255,in));
fclose(in);
}